#include "Edge.h"

Edge::Edge(void){
	from = -1;
	to = -1;
	weight = 0;
}

Edge::Edge(int f, int t, int w):from(f),to(t),weight(w){
}

std::ostream& operator<<(std::ostream& os, const Edge& e){
	os<<"<"<<e.from<<", "<<e.to;
	(e.weight!=0)?os<<", "<<e.weight<<">":os<<">";
	return os;
}
